nav {
  width: 100%;
  background-color: #222;
  text-align: center;
  height: 2rem;
  box-shadow: 0 0 25px 1px #222;
  & > ul {
    display: inline-block;
    font-size: 0;
    &>li {
      height: 2rem;
      line-height: 2rem;
      font-size: 1rem;
      display: inline-block;
      position: relative;
    }
  }
  a {
    font-weight: 600;
    color: #fff;
    padding: 0 1rem;
    display:block;
    transition: all .5s;
    //white-space:nowrap;
  }
  li > .sub {
    position: absolute;
    min-width:100%;
    top: -999rem;
    z-index: 10;
    box-shadow: 0 0 15px 0.3px rgba(0,0,0,0.6);
  }

  li:hover > .sub {
    top: 2rem;
  }

  .sub > a {
    padding: 0 2rem;
    background: #222;
    white-space:nowrap;
  }
}
nav a:hover, .sub:hover + a {
  padding: 0 2rem;
  background: #ccc;
  color: #666;
  box-shadow: 0 0 15px 0.3px rgba(0,0,0,0.6) inset;
}

header {
  flex: none;
  position: relative;
  overflow: hidden;
  background: #000;
  .bg-img {
    margin: 0 auto;
    background-image: $head-background-image;
    background-position:top center;
    background-size: cover;
    box-shadow: 5px 0 40px 15px rgba(0,0,0,0.5) inset,
    -5px 0 40px 15px rgba(0,0,0,0.5) inset;
    overflow: hidden;
    z-index: 1;
  }
}
